import SvgIcon from '@/components/SvgIcon/index.vue'
import Loading from '@/components/Loading/index.vue'
import BackTop from '@/components/BackTop/index.vue'
import Date from '@/components/Date/index.vue'
import BaseVideo from '@/components/BaseVideo/index.vue'
import qrCode from '@/components/qrCode/index.vue'
import BaseEcharts from '@/components/BaseEcharts/index.vue'

import type { App, Component } from 'vue'
const allGlobalComponent: { [name: string]: Component } = {
  SvgIcon,
  Loading,
  BackTop,
  Date,
  BaseVideo,
  qrCode,
  BaseEcharts
}
export default {
  install(app: App) {
    Object.keys(allGlobalComponent).forEach((key: string) => {
      app.component(key, allGlobalComponent[key])
    })
  },
}
